package com.goldendawn.lockscreen.recevier;

import com.goldendawn.lockscreen.service.RecevierLiveService;
import com.goldendawn.lockscreen.service.lockService;
import com.goldendawn.lockscreen.tools.GolbVar;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

public class BootCompletedRecevier extends BroadcastReceiver {
	GolbVar golbVar;

	@Override
	public void onReceive(Context context, Intent intent) {
		// TODO Auto-generated method stub
		golbVar=GolbVar.getInstance(context);
		if(golbVar.isStartOpen()){
		context.startService(new Intent(context, lockService.class));
		context.startService(new Intent(context, RecevierLiveService.class));
		}
	}
}
